/**
 * Anderground project - Subway maps processor application.
 * Copyright (C) 2008 Maksim Tkatchenko
 * Copyright (C) 2008-2009 Eldar Abusalimov, Ilya Shurigyn
 * 
 * This file is part of Anderground.
 * 
 * Anderground is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * Anderground is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Anderground.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.anderground.internal.graphics.abstaractions;

import org.anderground.core.graphics.PathEffect;
import org.anderground.core.graphics.Shader;

public interface AbstractPaint {

	public enum Cap {
		BUTT, ROUND, SQUARE
	}

	public enum Style {
		FILL, FILL_AND_STROKE, STROKE
	}

	public int getColor();

	public PathEffect getPathEffect();

	public Shader getShader();

	public Cap getStrokeCap();

	public float getStrokeWidth();

	public Style getStyle();

	public float getTextSize();

	public boolean isAntiAlias();

	public float measureText(String text);

	public void setAlpha(int a);

	public void setAntiAlias(boolean aa);

	public void setARGB(int a, int r, int g, int b);

	public void setColor(int color);

	public PathEffect setPathEffect(PathEffect effect);

	public void setShader(Shader shader);

	public void setStrokeCap(Cap cap);

	public void setStrokeWidth(float width);

	public void setStyle(Style style);

	public void setTextSize(float textSize);

}
